# trig2disk:
# I listen to trigger messages (TYPE_TRIGLIST_SCNL), 
# gather the listed waveform snippets from a list of WaveServerV's,
# and write them to disk file(s) in the requested format.
#------------------------------------------------------------------
 MyModuleId      MOD_TRIG2DISK
 RingName        HYPO_RING # TRIGGER_RING ?
 HeartBeatInt    30

 LogFile         1            # 0 => don't create a disk log file.
                              # 1 => write a disk log file.
                              # 2 => log to disk file but not stderr/stdout

#Debug                        # Debug info will be logged if uncommented

# What message logos to listen to. Can be more than one.
# The type is hard coded to TYPE_TRIGLIST_SCNL
#-------------------------------------------------------
 GetEventsFrom   INST_FAIRBANKS  MOD_CONTRECORD


# IP addresses/Port of the WaveServers
#------------------------------------------
 WaveServer      127.0.0.1       16022   # talk to local waveserver	
#  WaveServer   137.229.32.23   16022      # old EW box
 WaveServer   137.229.32.107   16022     # chinook


 TimeoutSeconds  30       # If a WaveServer doesn't talk to us in this
                          # many seconds, we'll abort that request (default 30)

 MaxTraces       500	  # Max number of traces we'll ever see in one event (default 256)

 TraceBufferLen  2000  	  # kilobytes of the largest trace snippet 
                          # trig2disk will ever have to deal with. (default 256)

# Optional NEW COMMAND in EW v7.3 Postproc allows running of a program or script that will process new files
# no arguments are sent to the script...It should know where to run and what to do with new files:
#
#Postproc  myscript  # the myscript or program should be in the params directory or an absolute path must be provided.


# SCNL list of stations to write for each trigger message.  
# Any SCNLs listed here will be gathered in addition
# to the SCNLs in the trigger message.
# written in addition to SCNLs in the trigger message.
#--------------------------------------------------------
#TrigStation  IRGCH ATT NC --

 MinDuration  60          # Minimum number of seconds to save for extra
                          # channels that we are saving (i.e., those chans
                          # not in the TYPE_TRIGLIST message)


# Output control
#---------------
 GapThresh    75        # number of sample periods after which we
                          # declare a gap. For some output formats,
                          # a gap means a new output file.

 OutDir       /avort/webrun/earthworm/run/data/continuous   # base directory for output data files

 DataFormat   seisan        # Possible DataFormats are:
                          #   suds
                          #   sac
                          #   ah 
                          #   seisan
                          #   gse_int  (GSE)
                          #   tank     (tankplayer input/raw Earthworm)

 OutputFormat intel       # Possible OutputFormats are: 
                          #   intel
                          #   sparc
                          # Files will be written out in the specified byte 
                          # order. Make sure it's appropriate for platform 
                          # where the output files will be used.
 
# Optional queue commands
#------------------------
 QueueSize 40              # Optional: # trigger msgs to hold in queue; 
                          # default is 10

 QueueFile trig2disk.que  # Optional: queue dumpfile name, for saving state of queue


 DelayTime 30              # Optional: trig2disk will wait this many seconds
                          #  from the time it receives a trigger message 
                          #  until it starts to process the message
                          #  Allows trig2disk to wait for late-arriving wf.
			  # Default=5
# THE END
